<?php
/*
 * 积分商城
 */
namespace app\home\controller;

use app\common\controller\IndexBase;
use think\facade\Session;
use think\facade\Db;

class Points extends IndexBase
{

    protected function initialize()
    {
        parent::initialize();
    }

    //首页
    public function index()
    {
        return $this->fetch('',['desc'=>Db::table('contract')->withAttr('create_time', function($value) {return date('Y/m/d',$value);})->where(['contract_type'=>4])->find()]);
    }



}